
const mongoose = require('mongoose')
const Schema = mongoose.Schema;

/**
 * 用户信息管理
 */
const UserSchema = new Schema({
    name: { type: String, default: '' },
    email: { type: String, default: '' },
    username: { type: String, default: '' },
    provider: { type: String, default: '' },
    hashed_password: { type: String, default: '' },
    salt: { type: String, default: '' }
});

module.exports = mongoose.model('user', UserSchema);